package com.cqupt.scanning.system.statistics.controller;

import com.cqupt.scanning.system.statistics.service.CalculatedDataFoot1Service;
import com.cqupt.scanning.system.statistics.service.StatisticsService;
import com.cqupt.scanning.system.utils.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.websocket.server.PathParam;

/**
 * @Data: 2021/7/8 16:01
 * @Author: 宋宝梁
 */
@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;


    /**
     * 获取设备数量（区分足底扫描和三维扫描）
     * @return
     */
    @GetMapping("/dev/count")
    public R queryDevCount() {
        return statisticsService.queryDevCount();
    }

    /**
     * 获取病人数量（区分足底扫描和三维扫描）
     * @return
     */
    @GetMapping("/pat/count")
    public R queryPatCount() {
        return statisticsService.queryPatCount();
    }

    /**
     * 获取申请医生数量(考虑为:等于足底、三维病人数量)
     * @return
     */
    @GetMapping("/appDoc/count")
    public R queryAppDoctorCount() {
        return statisticsService.queryAppDoctorCount();
    }

    /**
     * 获取检测医生数量（考虑为：等于足底、三维病人数量）
     * @return
     */
    @GetMapping("/detDoc/count")
    public R queryDetectDoctorCount() {
        return statisticsService.queryDetectDoctorCount();
    }

    /**
     * 获取报告数量（考虑为：等于足底、三维病人数量）
     * @return
     */
    @GetMapping("/report/count")
    public R queryReportCount() {
        return statisticsService.queryReportCount();
    }




}
